﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// Layer STO (server transfer object)
	/// </summary>
    [DataContract]
    public class LayerSTO
    {
		//Todo: local variables are declared public??
		/// <summary>
		/// Local variable _layerList
		/// </summary>
		public List<LayerDTO> _layerList;
		/// <summary>
		/// Local variable _errorMessage
		/// </summary>
        public string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="LayerSTO"/> class.
		/// </summary>
        public LayerSTO()
        {
            _layerList = new List<LayerDTO>();
            _errorMessage = "";
        }

		/// <summary>
		/// Gets or sets the layer list of <see cref="LayerDTO"/>.
		/// </summary>
		/// <value>The layer list.</value>
        [DataMember]
        public List<LayerDTO> layerList
        {
            get { return _layerList; }
            set { _layerList = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

    }
}
